# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-dlib
_pkgname=dlib
pkgver=20.0.0
pkgrel=1
pkgdesc='A toolkit for making real world machine learning and data analysis applications.'
arch=('x86_64' 'aarch64')
url='https://pypi.org/project/dlib/#files'
license=('custom:unknown')
depends=('python')
makedepends=('python-setuptools' 'cmake')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('6faa4dd9206acdcedee5a38b28d8094fa857a1db8003abc5ade0fb6992b331d0aea429ac21f5ae165ef7fd6f648c40ff2566042728492a8262b0316ec863e7c8')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

